<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>会员信息详情</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css">
<!--公共样式结束-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/module_form.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/page_memberAdd.css">
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.min.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/common.js"></script>
</head>

<body>
	<div class="page_wraper">
		<div id="tab1_0" fortab="tab1">
			<input type="hidden" name="vipcardUser_id" id="vipcardUser_id" value="{$detail.data.id}">
			<table cellpadding="0" cellspacing="0" class="module_form" width="600">
			<fieldset>
				<tr>
					<td class="ele_title" style="width: 150px;"><label for="cardnum">会员卡号：<em>*</em></label></td>
					<td class="ele_content">{$detail.data.vipno}</td>
				</tr>
				<tr>
					<td class="ele_title" style="width: 150px;"><label for="realname">会员卡名称：</label></td>
					<td class="ele_content">{$detail.data.title}</td>
				</tr>
				<tr>
					<td class="ele_title" style="width: 150px;"><label for="iccard">可升级级别：</label></td>
					<td class="ele_content">
						<select name="vipcard_id" id="vipcard_id" >
							<volist name="detail.levels" id="vo">
								<option value="{$vo.id}">{$vo.title}</option>
							</volist>
						</select>
					</td>
				</tr>
				</fieldset>
			</table>
			<div class="page_footer pdtd10">
				<input type="button" name="submit" id="tijiao" value="确定升级"  class="form_ele_submit"/>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$("#tijiao").on("click",function(){
		var vi_id  = $("#vipcardUser_id").val();
		var vid    = $("#vipcard_id").val();
		var vtitle = $("#vipcard_id").find("option:selected").text(); 
		$.get("{:U(Custom/upgrade)}",{vi_id:vi_id,vid:vid,vtitle:vtitle},function(d){
			windowApi.lhgdialog.tips('数据提交成功！',1,etIcon.success,function(){
				var obj = windowApi.lhgdialog.list['Custom_detail'];
				obj.reload(obj); //指定刷新某个窗口
			});
			frameApi.close(); //关闭当前窗口
		});
	});
</script>
</html>
